package face.pay.entity;



/**
 * @Auther: zkj
 * @Date: 2019/7/2 17:56
 * @Description:收入记录
 */
public class IncomeInfo {

    private Long id;

    private Integer userId;
    private String srcUserName;

    private Integer oemId;


    private Long money =  new Long(0);

    /**
     * 原始订单金额
     */
    private Long totalFee= new Long(0);;


    /**
     * 收入类型
     * <p>
     * 用户消费分润 1
     * 门店推荐用户消费分润 2
     * 设备返佣  3
     * 代理商推荐分佣 4（购买名额）
     */
    private Integer type;

    /**
     * 引用ID
     */
    private Long refId;

    /**
     * 收益来源用户Id
     */
    private Integer srcUserId;


    private String createdTime;

    private Integer createdBy;

    private String updatedTime;

    private Integer updatedBy;

    //查询开始时间
    private String startTime;

    //查询结束时间
    private String endTime;




    public static class TYPE {

        /**
         * 用户消费分佣
         */
        public static final Integer CONSUME = 1;

        /**
         * 商家推荐
         */
        public static final Integer ENTERPRISE_REC = 2;

        /**
         * 设备分佣
         */
        public static final Integer TERMINAL = 3;

        /**
         * 代理商推荐（购买）
         */
        public static final Integer AGENCY_REC = 4;


    }

    public IncomeInfo() {
    }

    public IncomeInfo(Integer userId, Integer oemId, Long money, Integer type, Long refId) {
        this.userId = userId;
        this.oemId = oemId;
        this.money = money;
        this.type = type;
        this.refId = refId;
    }

    public IncomeInfo(Integer userId, Integer oemId, Long money, Integer type, Long refId, Long totalFee) {
        this.userId = userId;
        this.oemId = oemId;
        this.money = money;
        this.type = type;
        this.refId = refId;
        this.totalFee = totalFee;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(String createdTime) {
        this.createdTime = createdTime;
    }

    public Integer getSrcUserId() {
        return srcUserId;
    }

    public String getSrcUserName() {
        return srcUserName;
    }

    public void setSrcUserName(String srcUserName) {
        this.srcUserName = srcUserName;
    }

    public void setSrcUserId(Integer srcUserId) {
        this.srcUserId = srcUserId;
    }

    public Integer getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Integer createdBy) {
        this.createdBy = createdBy;
    }

    public String getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(String updatedTime) {
        this.updatedTime = updatedTime;
    }

    public Integer getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(Integer updatedBy) {
        this.updatedBy = updatedBy;
    }

    public Long getRefId() {
        return refId;
    }

    public void setRefId(Long refId) {
        this.refId = refId;
    }

    public Integer getOemId() {
        return oemId;
    }

    public void setOemId(Integer oemId) {
        this.oemId = oemId;
    }

    public Long getMoney() {
        return money;
    }

    public void setMoney(Long money) {
        this.money = money;
    }

    public Long getTotalFee() {
        return totalFee;
    }

    public void setTotalFee(Long totalFee) {
        this.totalFee = totalFee;
    }


    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }
}


